package java19;

public abstract class CoffeineBeverage {
    public final void prepareRecipe()
    {
        boilWater();
        brew();
        pourInCpu();
        if(isCustomerWantsCondiments())
        {
            addCondiments();
        }
    }
    public abstract void brew();
    public abstract void addCondiments();
    public void pourInCpu()
    {
        System.out.println("pouring into cup");
    }
    public void boilWater()
    {
        System.out.println("boiling water");
    }
    public  boolean isCustomerWantsCondiments()
    {
        return true;
    }
}
